// pages/my/order-detail/order-detail.js
const controllers = require('../../controllers/controllerOrder').controller
const app = getApp()

Page({

  data: {
    item: {}
  },

  // 复制订单
  copyOrder() {
    const detail = this.data.detail
    const data = `下单用户:${detail.accountNick},联系方式:${detail.accountMobile},订单号:${detail.orderNo},实付款:${detail.money}元`

    wx.setClipboardData({
      data
    })
  },

  onLoad: function (options) {
    const detail = JSON.parse(options.item)
    this.setData({
      detail
    })
  },


})